import request from '@/utils/request'

// 数据看板
export function incomeDataIndex(params) {
    return request({
        url: '/manager/active_data/incomeDataIndex',
        method: 'get',
        params
    })
}

export function getLockPositionScore(params) {
    return request({
        url: '/manager/active_data/getLockPositionScore',
        method: 'get',
        params
    })
}

// ---------广告位数据-------------
export function allData(params) {
    return request({
        url: '/manager/active_data/allData',
        method: 'get',
        params
    })
}


export function trendHourChart(params) {
    return request({
        url: '/manager/active_data/trendHourChart',
        method: 'get',
        params
    })
}

export function trendDayChart(params) {
    return request({
        url: '/manager/active_data/trendDayChart',
        method: 'get',
        params
    })
}

export function trendMonthChart(params) {
    return request({
        url: '/manager/active_data/trendMonthChart',
        method: 'get',
        params
    })
}


// manager/active_data/incomeIndex
export function incomeIndex(params) {
    return request({
        url: '/manager/active_data/incomeIndex',
        method: 'get',
        params
    })
}

//收益看板导出
export function reqIncomeDataIndexExport(data) {
    return request({
        url: '/manager/active_data/incomeDataIndexExport',
        method: 'post',
        data: data,
    })
}


// 数据明细导出-时
export function trendHourChartExport(data) {
    return request({
        url: '/manager/active_data/trendHourChartExport',
        method: 'post',
        data: data,
    })
}

// 数据明细导出-天
export function trendDayChartExport(data) {
    return request({
        url: '/manager/active_data/trendDayChartExport',
        method: 'post',
        data: data,
    })
}

// 数据明细导出-月
export function trendMonthChartExport(data) {
    return request({
        url: '/manager/active_data/trendMonthChartExport',
        method: 'post',
        data: data,
    })
}
